import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
//HistoryFileList
const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue'),
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/LoginRegister.vue')
  },
  {
    path: '/user',
    name: 'user',
    component: () => import('../views/user.vue')
  },
  {
    path: '/setting',
    name: 'Setting',
    component: () => import('../views/Setting.vue')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import( '../views/About.vue')
  },
  {
    path: '/update',
    name: 'update',
    component: () => import('../views/update.vue')
  },
  {
    path: '/vip',
    name: 'vip',
    component: () => import('../views/vip.vue')
  },
  {
    path: '/notice',
    name: 'notice',
    component: () => import('../views/notice.vue')
  },
  {
    path: '/HistoryFileList',
    name: 'HistoryFileList',
    component: () => import('../views/HistoryFileList.vue')
  }
]

const router = new VueRouter({
  routes,
  mode:'history'
})

export default router
